package P068_LinkedList;

import org.junit.Test;

import java.util.ArrayList;
import java.util.LinkedList;

/**
 * 频繁插入和删除时使用LinkedList
 */
public class UseLinkedList {
    @Test
    public void Test() {
        ArrayList<Object> arrayList = new ArrayList<>();
        arrayList.add(0);
        arrayList.remove(0);
        LinkedList linkedList = new LinkedList();
        linkedList.add(0);
        linkedList.remove(0);
    }
}
